<script language="JavaScript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
<!--后台图片上传地址-->
<input type="hidden" id="uploadUrl" value="{:url('Upload/index')}">
<!--后台图片预览地址-->
<input type="hidden" id="showPic" value="{:url('Show/pic')}">
<script>
//公共图片上传方法
function uploadImg(k){	 
	 $.ajaxFileUpload({
	     url: $("#uploadUrl").val(),
	     fileElementId: 'uploadFile'+k,
	     dataType: 'json',
	     success: function(json){
	    	 if (json.status == "1"){ 
	    		 	art.dialog.tips('上传成功');
	    		 	//回调
	   	            uploadCall(k,json.data);
	   	         }else{
	   	        	window.parent.callNotice('上传失败');
	     		}
	 		}
	});
	
}

</script>
</body>
</html>
